<div class="idc" style="width: 137px;">
    <div class="fork-sig on"></div>
    <div class="banner-fork">
        <i></i>
        <form id="queryOffer" name="info_form" action="{:U('Home/Action/apply')}" method="post" class="wrap clearfix">
            <div class="a3">
                <input type="text" placeholder="您的姓名" name="name">
                <span class="clearfix">
                    <input class="bs_select" name="money" type="text" placeholder="需求金额"><font>万</font>
                </span>
            </div>
            <div class="a1">
                <select class="bp_f_select" name="city">
                    <option value="">所在城市</option>
                    <foreach name="customer_apply_city" item="val">
                        <option value="{$val}">{$val}</option>
                    </foreach>
                </select>
                <input type="text" name="code" placeholder="验证码">
            </div>
            <div class="a2">
                <input type="text" name="mobile" class="bc_f_select" placeholder="您的手机号" style="margin-bottom: 10px;">
                <img id="shenqing_code1" src="{:U('Home/Action/make_code')}" style="width: 160px;height: 42px;" onclick="RefreshCode('shenqing_code1')">
            </div>
            <div class="a4" style="">
                <input class="queryOffer_submit" type="submit" value="申请" style="border: 0;background: transparent; color: #ff2222; font-size: 40px;">
            </div>
            <div class="a5">
                <h6>全国咨询热线</h6>
                <p>{$setting['company_fixed_phone']}</p>
            </div>
        </form>
    </div>
</div>
<script>
    function RefreshCode(id){
        //重载验证码
        var url = "{:U('Home/Action/make_code')}?r="+Math.floor(Math.random()*10000);
        $('#'+id).attr('src',url);
    }
</script>
<script>
    $('#queryOffer').ajaxForm({success:complate,dataType:'json'});
    function complate(result){
        if(result.errNum === 0){
            $('#queryOffer').find('input').val('');
            $('.queryOffer_submit').val('申请');
            layer.msg(result.retData, 2, 1);
            RefreshCode('shenqing_code1')
        } else {
            layer.msg(result.errMsg);
            RefreshCode('shenqing_code1')
        }
    }
</script>